﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MDI.Master" AutoEventWireup="true" CodeBehind="frmAdministracion.aspx.cs" Inherits="CapaPresentacion.frmAdministracion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cuerpo" runat="server">
    <div class="row">

        <div class="col-lg-12">
            <ol class="breadcrumb">
                <li class="active"><i class="fa fa-dashboard"></i>Administración</li>
            </ol>
        </div>
    </div>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Precios y Descuentos</a></li>
            <li><a href="#tabs-2">Comisiones</a></li>
        </ul>
        <div id="tabs-1">
            <div class=" col-lg-1">
                <div class="form-group">
                    <label>Linea:</label>
                </div>
            </div>
            <div class=" col-lg-6">
                <div class="form-group">
                    <select class="form-control" id="linea">
                    </select>
                </div>
            </div>
            <div class="table-responsive">
                <table id="tbProductos" class="table table-bordered table-hover tablesorter">
                    <thead>
                        <tr>
                            <th>Código</th>
                            <th>Presentación</th>
                            <th>Precio</th>
                            <th>% Descuento</th>
                            <th></th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div id="tabs-2">
            <div class="table-responsive">
                <table id="tbLineas" class="table table-bordered table-hover tablesorter">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Linea</th>
                            <th>Comisión</th>
                            <th></th>
                        </tr>
                    </thead>
                </table>
            </div>
           
        </div>
    </div>
    <!-- Modal Editar Precios y Descuentos  -->
    <div class="modal fade" id="modalEditarPrecio" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="myModalLabel">Editar Precio y Descuento</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <form id="frmEditarPrecio">
                            <div class=" col-lg-12 hidden">
                                <div class="form-group">
                                    <label>ID Producto</label>
                                    <input id="pro_id" name="pro_id" class="form-control" onfocus="this.blur()" />
                                </div>
                            </div>
                            <div class=" col-lg-12">
                                <div class="form-group">
                                    <label>Presentación</label>
                                    <input id="pro_presentacion" name="pro_presentacion" class="form-control" onfocus="this.blur()" />
                                </div>
                            </div>
                            <div class=" col-lg-6">
                                <div class="form-group">
                                    <label>Precio S/.</label>
                                    <input id="pre_precio" name="pre_precio" class="form-control" />
                                </div>
                            </div>
                            <div class=" col-lg-6">
                                <div class="form-group">
                                    <label>Descuento %</label>
                                    <input id="pre_descuento" name="pre_descuento" class="form-control" />
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secundary" data-dismiss="modal">Cancelar</button>
                    <button id="btnModificarPrecio" type="button" class="btn btn-primary" data-dismiss="modal">Actualizar</button>

                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="modalEditarComision" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="H1">Editar Comisiones</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <form id="frmModificarComision">
                            <div class=" col-lg-12 hidden">
                                <div class="form-group">
                                    <label>Id Linea</label>
                                    <input id="lin_id" name="lin_id" class="form-control" onfocus="this.blur()" />
                                </div>
                            </div>
                            <div class=" col-lg-12">
                                <div class="form-group">
                                    <label>Línea</label>
                                    <input id="lin_descripcion" name="lin_descripcion" class="form-control" onfocus="this.blur()" />
                                </div>
                            </div>
                            <div class=" col-lg-12">
                                <div class="form-group">
                                    <label>Comision %</label>
                                    <input id="comision" name="comision" class="form-control" />
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secundary" data-dismiss="modal">Cancelar</button>
                    <button id="btn_actualizar_comision" type="button" class="btn btn-primary" data-dismiss="modal">Actualizar</button>
                </div>
            </div>
        </div>
    </div>
    <script src="assets/js/administracion.js"></script>
</asp:Content>
